#ifndef RESOURCE_H_
#define RESOURCE_H_
#include <stdint.h>

#define RES_FLG_END      0x03
#define RES_FLG_FONT     0x01
#define RES_FLG_IMG      0x02


typedef struct {
        uint32_t id;
        uint32_t flag;
        uint32_t offset;
        uint32_t size;
        uint32_t w;
        uint32_t h;
}res_entry_t;

#define RES_ID_SYS_ASC  0x01
#define RES_ID_SYS_HZK  0x02



#define RES_ID_FONT_ASC12       (0x01)
#define RES_ID_FONT_HZK12       (0x02)
#define RES_ID_FONT_ASC16       (0x03)
#define RES_ID_FONT_HZK16       (0x04)
#define RES_ID_STAR_NET_FONT    (0x05) /* ASC24 */
#define RES_ID_FONT_HZK24       (0x05)
#define RES_ID_FONT_ASC24       (0x06)


int resource_init(void);
int find_resource_by_id(uint32_t id, res_entry_t * res);
void get_resource_by_id(res_entry_t * res, uint8_t * buf);

#endif /* RESOURCE_H_ */
